package cn.iocoder.yudao.module.of.dal.mysql.meetingminutesenduser;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.of.dal.dataobject.meetingminutesenduser.MeetingMinuteSendUserDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.of.controller.admin.meetingminutesenduser.vo.*;

/**
 * 会议纪要下派人员 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface MeetingMinuteSendUserMapper extends BaseMapperX<MeetingMinuteSendUserDO> {

    default PageResult<MeetingMinuteSendUserDO> selectPage(MeetingMinuteSendUserPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<MeetingMinuteSendUserDO>()
                .eqIfPresent(MeetingMinuteSendUserDO::getMeetingId, reqVO.getMeetingId())
                .eqIfPresent(MeetingMinuteSendUserDO::getMinuteId, reqVO.getMinuteId())
                .eqIfPresent(MeetingMinuteSendUserDO::getSendUserId, reqVO.getSendUserId())
                .likeIfPresent(MeetingMinuteSendUserDO::getSendUserName, reqVO.getSendUserName())
                .betweenIfPresent(MeetingMinuteSendUserDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(MeetingMinuteSendUserDO::getId));
    }

}